import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/utils/permission.js'
// 移动端适配文件
import 'amfe-flexible'
import { NavBar, Form, Field, Button, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, List, PullRefresh, ActionSheet, Dialog, Popup, Row, Col, Badge, Search, Divider, Tag, CellGroup, Image, DatetimePicker } from 'vant'
import directive from '@/utils/directives'

Vue.use(DatetimePicker)
Vue.use(Image)
Vue.use(CellGroup)
Vue.use(Tag)
Vue.use(Divider)
Vue.use(directive)
Vue.use(Badge)
Vue.use(Search)
Vue.use(Row)
Vue.use(Col)
Vue.use(Popup)
Vue.use(Dialog)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
// 按需引入axios请求
// import { allChannelListAPI } from '@/api'

// const myFn = async () => {
//   try {
//     await allChannelListAPI()
//   } catch (error) {
//     console.dir(error)
//   }
// }
// myFn()

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
